/*
 * @Description: 消息
 * @Author: iamsmiling
 * @Date: 2021-05-25 21:47:46
 * @LastEditTime: 2021-05-25 22:00:38
 */

enum MessageType { system, user }

class MessageEntity {
  late String username;

  String? company;
  late String createAt;
  late String content;

  late int typeCode;
  String? avatar;
  late MessageType type;

  MessageEntity.fromJson(Map json);

  MessageEntity(
      {required this.username,
      this.company,
      this.type = MessageType.user,
      required this.content,
      required this.createAt,
      required this.avatar,
      required this.typeCode});
}
